package com.zxl.grocery.modular.crawler.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 小说表
 * </p>
 *
 * @author zxl
 * @since 2017-08-31
 */
@TableName("crawler_novel")
public class CrawlerNovel extends Model<CrawlerNovel> {

    private static final long serialVersionUID = 2794452778267500948L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 所属类别
     */
    @TableField("type_id")
    private Integer typeId;
    /**
     * 书名
     */
    private String title;
    /**
     * 章节排序字段
     */
    @TableField("chapter_sort")
    private Integer chapterSort;
    /**
     * 章节
     */
    private String chapter;
    /**
     * 内容
     */
    private String content;
    /**
     * 小说作者
     */
    private String novelist;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 链接地址
     */
    private String link;
    /**
     * 作者
     */
    private String author;
    /**
     * 来源id
     */
    @TableField("sources_id")
    private Integer sourcesId;
    /**
     * 点赞
     */
    @TableField("thumb_up")
    private Integer thumbUp;
    /**
     * 是否置顶
     */
    @TableField("placed_top")
    private Integer placedTop;
    /**
     * 是否推荐
     */
    private Integer recommend;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 添加时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 修改时间
     */
    @TableField("modify_date")
    private Date modifyDate;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getChapterSort() {
        return chapterSort;
    }

    public void setChapterSort(Integer chapterSort) {
        this.chapterSort = chapterSort;
    }

    public String getChapter() {
        return chapter;
    }

    public void setChapter(String chapter) {
        this.chapter = chapter;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getNovelist() {
        return novelist;
    }

    public void setNovelist(String novelist) {
        this.novelist = novelist;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Integer getSourcesId() {
        return sourcesId;
    }

    public void setSourcesId(Integer sourcesId) {
        this.sourcesId = sourcesId;
    }

    public Integer getThumbUp() {
        return thumbUp;
    }

    public void setThumbUp(Integer thumbUp) {
        this.thumbUp = thumbUp;
    }

    public Integer getPlacedTop() {
        return placedTop;
    }

    public void setPlacedTop(Integer placedTop) {
        this.placedTop = placedTop;
    }

    public Integer getRecommend() {
        return recommend;
    }

    public void setRecommend(Integer recommend) {
        this.recommend = recommend;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CrawlerNovel{" +
                "id=" + id +
                ", typeId=" + typeId +
                ", title=" + title +
                ", chapterSort=" + chapterSort +
                ", chapter=" + chapter +
                ", content=" + content +
                ", novelist=" + novelist +
                ", sort=" + sort +
                ", link=" + link +
                ", author=" + author +
                ", sourcesId=" + sourcesId +
                ", thumbUp=" + thumbUp +
                ", placedTop=" + placedTop +
                ", recommend=" + recommend +
                ", status=" + status +
                ", createDate=" + createDate +
                ", modifyDate=" + modifyDate +
                "}";
    }
}
